package org.lee.common.core.config;

import lombok.extern.slf4j.Slf4j;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import org.redisson.api.RedissonClient;
import org.redisson.solon.RedissonSupplier;

@Slf4j
@Configuration
public class RedissonConfig {
    @Bean
    public RedissonClient redis(@Inject("${redisson.lee}") RedissonSupplier supplier) {
        log.debug("config - redis");
        return supplier.get();
    }
}
